package xyz.mkkbjb.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import xyz.mkkbjb.utils.UuidUtils;

@Controller
public class HomeController {
	
	@RequestMapping(value= {"/","/index"})
	public String home(Model model) {
		model.addAttribute("pageId", UuidUtils.getUUID());
		return "index";
	}
	@RequestMapping(value= {"/chat"})
	public String chat(Model model) {
		model.addAttribute("pageId", UuidUtils.getUUID());
		return "chat";
	}
}
